package com.demo.common.model;

import lombok.AllArgsConstructor;
import lombok.Getter;

/*
    业务状态码枚举
 */
@AllArgsConstructor
@Getter
public enum BusinsesEnum {
    SUCCESS(200,"操作成功"),
    OPERATION_ERROR(900,"操作失败"),
    ACCESS_FORBIDDEN(403,"无权限访问"),
    UN_AUTHORIZATION(401,"未授权"),
    TOKEN_INVALIDATE(901,"令牌TOKEN无效"),
    TOKEN_EMPTY(902,"令牌token无值")
    ;
    private Integer code; // 状态码
    private String desc; // 描述
}
